home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / demos / r-z / sbase4pro / trading / stkdr.sbp < prev    next >
Text File  |  1995-07-10  |  4KB  |  204 lines

  1. SBP
  2.  ÿ½      STKDR
  3.  ÿ½      Cash usw. eingeben
  4.  ÿ½      Zuletzt aktualisiert Jan 03, 90
  5.  
  6.  ÿ³ÿ_ÿwferror
  7.  
  8. stkdr:ÿ½ Parameter einstellen
  9.  f$ÿ"cash":fkey$ÿ"Trans_Key":fmd$ÿ"stkdr":ffld%ÿ7:frow%ÿ10
  10.  ÿ¡mb%ÿ4ÿpbtype$ÿ"r"ÿ^btype$ÿ"p"
  11.  bdate$ÿÿ(ÿQ,"mmm dd,yy"):bdate%ÿÿQ
  12.  
  13.  ÿ™"ctrl"
  14.  bref%ÿbatch.CTRLÿ1
  15.  
  16.  ÿ´ÿ™f$
  17.  
  18.  ÿ£fkey$
  19.  ÿ´ÿœfmd$
  20.  
  21. bwait:ÿ½ Batchheader eingeben oder Exit
  22.  ÿÏÿß
  23.  ÿwbwait
  24.  
  25. bhead:ÿ½ Batchheader
  26.  ÿ™"ctrl"
  27.  batch.CTRLÿbatch.CTRLÿ1
  28.  ÿÌ
  29.  bref%ÿbatch.CTRL
  30.  ÿÊÿËss20$
  31.  
  32. bhead2:ÿ½ Batchgesamtsumme
  33.  ÿ™f$
  34.  ÿ”7
  35.  ÿ¡Zero ÿ    0ÿpÿÂms27$,"",2,a%:ÿwbhead2
  36.  ÿÂms1$,"",130,a%
  37.  ÿ¡a%ÿ0ÿpÿwbhead2
  38.  bttl%ÿZero:Zero ÿ0:ftl%ÿ0:tref%ÿ1
  39.  
  40. fenter:ÿ½ Datensätze ab Zeile 1 eingeben
  41.  ÿÿœ
  42.  ÿœ2
  43.  ÿÊÿËss3$
  44.  mp%ÿ1:ttl%ÿ0
  45.  
  46. fenter2:ÿ½ Datensatz eingeben
  47.  ÿ
  48.  Trans_ref.CASHÿtref%
  49.  ÿÍÿœÿ"mp%
  50.  ÿ”Trans_date ÿ"mp%ÿqCash_ref ÿ"mp%
  51.  
  52. fenter3:ÿ½ Barbetrag eingeben
  53.  ÿ”Amount.CASHÿ"mp%
  54.  b%ÿ0
  55.  ÿ¡Amount.CASHÿ0ÿp
  56. ÿÂms1$,"",127,a%
  57. ÿ¡a%ÿp
  58. amt%ÿAmount.CASH:ttl%ÿttl%ÿamt%:ftl%ÿftl%ÿamt%
  59. tref%ÿtref%ÿ1:mp%ÿmp%ÿ1
  60. Batch_ref.CASHÿbref%:Batch_date.CASHÿbdate%
  61. Printed_yn.CASHÿ"n":Trans_Type.CASHÿbtype$
  62. ÿÌ
  63. ÿvsupdate
  64. ÿœ
  65. ÿ’ÿ¡
  66.  ÿ^
  67. ÿÂms27$,"",100,a%:b%ÿ1
  68.  ÿ’ÿ¡
  69.  ÿ¡b%ÿpÿwfenter3
  70.  ÿÂms2$,"",130,b%
  71.  ÿ¡b%ÿ0ÿpÿwfcheck
  72.  ÿ¡mp%ÿfrow%ÿpÿwfenter ÿ^ÿwfenter2
  73.  
  74. fcheck:ÿ½ Batchgesamtsumme prüfen
  75.  ÿ¡ftl%ÿbttl%ÿp
  76. ÿÂms28$,ms29$,130,b%
  77.  ÿ^
  78. ÿÂms26$,ss13$,100,a%:b%ÿ1
  79.  ÿ’ÿ¡
  80.  ÿ¡b%ÿ0ÿwfexit
  81.  
  82. floop:ÿ½ Ab erstem Datensatz erneut ausgeben
  83.  ÿÿœ
  84.  ÿÉÿÐBatch_ref.CASHÿbref%
  85.  ÿvslimits
  86.  ckey%ÿfstk%
  87.  
  88. fform:ÿ½ Ab ckey ausgeben
  89.  ÿvspage
  90.  ÿœ2
  91.  
  92. fwait:ÿ½ Auf Drucktaste warten
  93.  mp%ÿ0
  94.  ÿÊÿËss13$
  95.  ÿÏÿß
  96.  
  97. ÿ½ Edit line
  98.  ÿ¡(mp%ÿ0ÿmp%ÿlrec%)ÿpÿwfwait
  99.  ÿÊÿËss4$
  100.  ÿÉÿœÿ"mp%
  101.  oamt%ÿAmount.CASH
  102.  
  103. fedit2: 
  104.  ÿ”Cash_ref.CASHÿ"mp%ÿqAmount.CASHÿ"mp%
  105.  b%ÿ0
  106.  ÿ¡Amount.CASHÿ0ÿp
  107. ÿÂms1$,"",127,a%
  108. ÿ¡a%ÿp
  109. amt%ÿAmount.CASHÿoamt%:ttl%ÿttl%ÿamt%:ftl%ÿftl%ÿamt%
  110. ÿÌ:ÿ½ always positive
  111. ÿvsupdate
  112. ÿœ
  113. ÿ’ÿ¡
  114.  ÿ^
  115. ÿÂ"Amount must be positive","",100,a%:b%ÿ1
  116.  ÿ’ÿ¡
  117.  ÿ¡b%ÿpÿwfedit2
  118.  ÿwfwait
  119.  
  120. fdelete:ÿ½ Delete record
  121.  ÿÊÿËss12$
  122.  ÿÏÿß
  123.  ÿÉÿœÿ"mp%
  124.  ÿÂms14$ÿÿ(Trans_Ref.CASH,"0000."),"",119,a%
  125.  ÿ¡a%ÿp
  126. ÿÉÿœÿ"mp%
  127. amt%ÿÿAmount.CASH:ttl%ÿttl%ÿamt%:ftl%ÿftl%ÿamt%
  128. ÿÉÿ¾
  129. ÿvsupdate
  130.  ÿ’ÿ¡
  131.  ÿ¡a%ÿwfloop ÿ^ÿwfwait
  132.  
  133. fnext:ÿ½ Next page
  134.  ÿ¡lstk%ÿpstk%(lrec%)ÿpÿwfwait
  135.  ÿÉÿ¥pstk%(lrec%)
  136.  ÿÉÿ±
  137.  ÿwfcurr
  138.  
  139. fprev:ÿ½ Prev page
  140.  ÿ¡fstk%ÿpstk%(1)ÿpÿwfwait
  141.  ÿÉÿ¥pstk%(1)
  142.  ÿ›i%ÿ1ÿqfrow%
  143. ÿÉÿg
  144.  ÿ±i%
  145.  
  146. fcurr: 
  147.  ÿ–"ckey% = "ÿfkey$
  148.  ÿwfform
  149.  
  150. fexit:ÿ½ Exit
  151.  ÿ¡ftl%ÿbttl%ÿpÿÂms26$,ss13$,100,a%:ÿwfwait
  152.  ÿ™"ctrl"
  153.  ÿ„"menu"
  154.  
  155. slimits: 
  156.  ÿÉÿb
  157.  ÿ–"lstk% = "ÿfkey$
  158.  ÿÉÿ`
  159.  ÿ–"fstk% = "ÿfkey$
  160.  ÿÃ
  161.  
  162. spage:ÿ½ Displays page of records starting with ckey$
  163. ÿ½ Returns key array and number of number of records for page
  164.  ÿÿœ
  165.  ÿÉÿ¥ckey%
  166.  j%ÿ0:ttl%ÿ0
  167.  ÿ›i%ÿ1ÿqfrow%
  168. ÿÍÿœÿ"i%
  169. j%ÿj%ÿ1:ttl%ÿttl%ÿAmount.CASH
  170. ÿ–"pstk%(i%) = "ÿfkey$
  171. ÿ–"IF "ÿfkey$ÿ"= lstk% THEN i% = frow%"
  172. ÿ¡i%ÿ
  173. frow%ÿpÿÉÿ±
  174.  ÿ±i%
  175.  ÿ¡j%ÿfrow%ÿplrec%ÿfrow%ÿ^lrec%ÿj%
  176.  ÿÃ
  177.  
  178. supdate: 
  179.  ÿ¡btype$ÿ"p"ÿpamt%ÿamt%ÿÿ1
  180.  ÿ™"Clients"
  181.  ÿÉÿ¥Client.CASH
  182.  Cash_Receipts.CLIENTSÿCash_Receipts.CLIENTSÿamt%
  183.  ÿÌ
  184.  ÿ™f$
  185.  ÿÃ
  186.  
  187. ferror:ÿ½ Error conditions
  188.  res%ÿ0
  189.  ÿ¡ÿ&ÿ11ÿp
  190. ÿÂms21$,ms22$,130,a%:ÿ¡a%ÿ1ÿpres%ÿ1
  191.  ÿ^ÿ¡ÿ&ÿ57ÿp
  192. ÿÂms8$,"",100,a%:res%ÿ2
  193.  ÿ^
  194. ÿÂÿ((ÿ&),ms9$,114,a%:ÿ¡a%ÿ1ÿpres%ÿ3
  195.  ÿ’ÿ¡
  196.  ÿ¡res%ÿ1ÿpÿy
  197.  ÿ¡res%ÿ2ÿpÿyfloop
  198.  ÿ¡res%ÿ3ÿpÿyfwait
  199.  ÿ
  200.  
  201.  
  202.